{% extends "Cars/sidebar.html" %}

{% block content %}


<form action="../post/" method="post">
    {% csrf_token %}
    <table class="table table-hover table-condensed table-striped">
        <tr>
            <th> Brand </th>
            <th> Model</th>
            <th> Chase No. </th>
            <th> Year </th>
        </tr>
        <tr>
            <td>{{ car.brand }}</td>
            <td>{{ car.car_model }}</td>
            <td>{{ car.chase_no }}</td>
            <td>{{ car.year }}</td>
        </tr>
        <tr>
            <th> Owner </th>
            <th> Company</th><th></th><th></th>

        </tr>
        <tr>
            <td>{{ car.user }}</td>
            <td>{{ car.company }}</td>

        </tr>
        <tr>
            <th> Plate Number</th>
            <th> English Part</th>
            <th> Arabic Part</th><th></th>

        </tr>
        <tr>
            <td>{{ car.plate_number }}</td>
            <td>{{ car.plate_str }}</td>
            <td>{{ car.arabic_plate_str }}</td>

        </tr>
        <tr>
            <th> Registration Expiry </th>
            <th> Checkup Expiry</th><th></th><th></th>
        </tr>
        <tr>
            <td>{{ car.expiry_date }}</td>
            <td>{{ car.checkup_expiry }}</td>
        </tr>

        <tr>
            <th> Registration Expiry </th>

        </tr>
        <tr>
            <td>Day : {{ car.arabic_reg_day }} Month : {{ car.arabic_reg_month }} Year : {{ car.arabic_reg_year }}</td>

        </tr>
        <tr>
            <th> Checkup Expiry </th>

        </tr>
        <tr>
            <td>Day : {{ car.arabic_check_day }} Month : {{ car.arabic_check_month }} Year : {{ car.arabic_check_year }}</td>

        </tr>
        <tr>
            <th> Insurance Company </th>
            <th> Insurance Cost</th>
            <th> Type</th>
            <th></th>

        </tr>
        <tr>
            <td>{{ car.insurance }}</td>
            <td>{{ car.insurance_cost }}</td>
            <td>{{ car.insurance_type }}</td>

        </tr>

        <tr>

            <th> Start Date </th>
            <th> End Date</th>
            <th></th>
            <th></th>
        </tr>
        <tr>

            <td>{{ car.insurance_start }}</td>
            <td>{{ car.insurance_end }}</td>
        </tr>

    </table>
    <div class="span4 offset10">
        <input type="submit" value="Submit" />
    </div>
</form>

{%  endblock %}